import { createStore } from "vuex";
import persistedState from "vuex-persistedstate";
import getters from "./getters";
import system from "./module/system"; // 系统相关
import user from "./module/user"; // 系统相关
import team from "./module/team"; // 团队

export default createStore({
    state: {},
    getters,
    mutations: {},
    actions: {},
    modules: { system, user, team },
    plugins: [
        persistedState({
            key: "digitAppSession", //关键字名字
            storage: window.sessionStorage,
        }),
    ],
});
